#ifndef _ZONE_MANAGER_H_
#define _ZONE_MANAGER_H_
#include "myobject.h"
#include <list>
#include <vector>

using namespace std;

namespace fireplane
{
	class ZoneManager
	{
	public:
		ZoneManager();
		~ZoneManager();

		void init(float mapHeight,float zoneHeight);
		int checkZone(float posY);

		void moveObject(Object* object,unsigned int lastIdx,
			unsigned int newIdx);

		void removeObject(unsigned int idx,Object* object);

	private:
		float _mapHeight;
		float _zoneHeight;
		vector<list<Object*>> _all_zones;
	};
}

#endif